<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8"
	contentType="text/html;charset=utf-8"%>
<title><fmt:message key="productDetail.title" />
</title>
<content tag="heading">
<fmt:message key="productDetail.heading" />
</content>

<html:form action="saveProduct" method="post" styleId="productForm"
	onsubmit="return validateProductForm(this)">


	<table width="100%" height="76" border="0" cellpadding="0"
		cellspacing="0">
		<tr>
			<td align="left" valign="top">



				<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="0">
					<tr>
						<td height="25" bgcolor="#5F9CD4" class="font01">
							&nbsp;&nbsp;&nbsp;&nbsp;仓库管理&gt;&gt;原料管理&gt;&gt;新增产品
						</td>
					</tr>
					<tr>
						<td height="8"></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table width="99%" border="0" align="center" cellpadding="1"
					cellspacing="1" bgcolor="#CDCDCD">
					<tr>
						<td height="27" background="img/m-bt-bg01.gif" bgcolor="#FFFFFF"
							style="background-repeat: no-repeat; background-position: right">
							<table width="99%" border="0" align="center" cellpadding="0"
								cellspacing="0">
								<tr>
									<td width="2%">
										<img src="img/dian-1.gif" width="6" height="6" />
									</td>
									<td width="48%" class="btn02">
										产品信息
									</td>
									<td width="50%">
										&nbsp;
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>

		<tr>
			<td>
				<table>
					<tr>
						<td>
							<html:hidden property="id" />
							<html:hidden property="belongDeptName" value="a" />
							<carsite:label styleClass="desc" key="productForm.belongDept" />
							<html:errors property="belongDept" />
							<html:select property="belongDept" styleId="belongDept">
								<html:option value="">请选择</html:option>
								<html:options collection="departmentList" labelProperty="deptName" property="deptId"/>
							</html:select>
						</td>

						<td>
							<carsite:label styleClass="desc" key="productForm.sn" />
							<html:errors property="sn" />
							<html:text property="sn" styleId="sn" styleClass="text medium" />

						</td>
					</tr>
					<tr>
						<td>
							<carsite:label styleClass="desc" key="productForm.title" />
							<html:errors property="title" />
							<html:text property="title" styleId="title"
								styleClass="text medium" />

						</td>

						<td>
							<carsite:label styleClass="desc" key="productForm.types" />
							<html:errors property="types" />
							<html:text property="types" styleId="types"
								styleClass="text medium" />

						</td>
					</tr>
					<tr>
						
						<td>
							<carsite:label styleClass="desc" key="productForm.unit" />
							<html:errors property="unit" />
							<html:text property="unit" styleId="unit"
								styleClass="text medium" />

						</td>
					</tr>
					<tr>
						
						<td>
							<carsite:label styleClass="desc" key="productForm.salePrice" />
							<html:errors property="salePrice" />
							<html:text property="salePrice" styleId="salePrice"
								styleClass="text medium" />

						</td>
					</tr>
					<tr>
						
						<td>
							<carsite:label styleClass="desc" key="productForm.intro" />
							<html:errors property="intro" />
							<html:text property="intro" styleId="intro"
								styleClass="text medium" />

						</td>
					</tr>
					<tr>

						<td>
							<carsite:label styleClass="desc" key="productForm.inputUser" />
							<html:errors property="inputUser" />
							<html:text property="inputUser" styleId="inputUser"
								styleClass="text medium" />

						</td>
					</tr>
					<tr>
						<td>
							<carsite:label styleClass="desc" key="productForm.inputTime" />
							<html:errors property="inputTime" />
							<html:text property="inputTime" styleId="inputTime"
								styleClass="text medium" />

						</td>

					</tr>
					<tr>
						<td>
							<carsite:label styleClass="desc" key="productForm.initNum" />
							<html:errors property="initNum" />
							<html:text property="initNum" styleId="initNum"
								styleClass="text medium" />

						</td>

						<td>
							<carsite:label styleClass="desc" key="productForm.planNum" />
							<html:errors property="planNum" />
							<html:text property="planNum" styleId="planNum"
								styleClass="text medium" />

						</td>
					</tr>
					<tr>
						<td>
							<carsite:label styleClass="desc" key="productForm.factNum" />
							<html:errors property="factNum" />
							<html:text property="factNum" styleId="factNum"
								styleClass="text medium" />

						</td>

					</tr>
					<tr>
						
					</tr>
					<tr>
						<td class="buttonBar bottom" 　colspan=2 align=center>
							<html:submit styleClass="button" property="method.save"
								onclick="javascript:refresh();">
								<fmt:message key="button.save" />
							</html:submit>



							<html:cancel styleClass="button" onclick="bCancel=false">
								<fmt:message key="button.cancel" />
							</html:cancel>
						</td>
						<td>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</html:form>

<script type="text/javascript">
    Form.focusFirstElement($("productForm"));
</script>
<script type="text/javascript">
   function refresh(){
  //this.document.getElementById("belongDept").selected.htmlinner();
 // alert("bb");
 //  	alert(document.getElementById("belongDept").name);
   	return true;
   }
</script>

<html:javascript formName="productForm" cdata="false"
	dynamicJavascript="true" staticJavascript="false" />
<script type="text/javascript"
	src="<html:rewrite page="/scripts/validator.jsp"/>"></script>